//
//  ViewController.m
//  UI14_StoryBoard
//
//  Created by Scott on 16/3/28.
//  Copyright © 2016年 Scott. All rights reserved.
//

#import "ViewController.h"
#import "VCOfSecond.h"

@interface ViewController ()

@property (weak, nonatomic) IBOutlet UITextField *TextFieldOfUser;


@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


/** 当通过segue跳转下一界面的时候, VC会调用此方法 */
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    
    // 查看UIStoryBoardSegue API
    
    
    VCOfSecond *second = segue.destinationViewController;

    // 属性赋值.
    second.content = self.TextFieldOfUser.text;

}




@end
